package initialize

import (
	"github.com/flipped-aurora/gin-vue-admin/server/global"
	"github.com/flipped-aurora/gin-vue-admin/server/model/epl"
	"github.com/flipped-aurora/gin-vue-admin/server/model/equipment_maintenance"
	"github.com/flipped-aurora/gin-vue-admin/server/model/intelligent_maintenances"
	"github.com/flipped-aurora/gin-vue-admin/server/model/wearingparts"
	"github.com/flipped-aurora/gin-vue-admin/server/model/wearingpartsDefinition"
	"github.com/flipped-aurora/gin-vue-admin/server/model/device"
)

func bizModel() error {
	db := global.GVA_DB
	err := db.AutoMigrate(wearingpartsDefinition.EquipmentPart{}, wearingparts.Erotable{}, epl.Erotable{}, equipment_maintenance.ServiceOrders{}, equipment_maintenance.EquipmentMaintenance{}, intelligent_maintenances.IntelligentMaintenance{}，device.Devices{}, device.AllVersions{}, device.Information{},device.Model{})
	if err != nil {
		return err
	}
	return nil
}
